#eps32c3 super mini
led1=8
key1=9
ledoff=1
ledon=0
scl=6
sda=7
voltageSwitch=1
dcdcSwitch=5
voltagePin=3
def getvolt(buf):
    buf.sort()
    l_=int(len(buf)/4)
    buf=buf[l_:len(buf)-l_]
    buf=sum(buf)/len(buf)
    return buf*5.6/4096
